import request from '@/utils/request';
export const channel = () => {
    return request({
        url: '/v1_0/channels'
    })
}
//获取用户频道接口
export const userchannel = () => {
    return request({
        url: '/v1_0/user/channels'
    })
}
//添加用户频道
export const addUserchannel = (data) => {
    return request({
        url: '/v1_0/user/channels',
        method: 'put',
        data
    })
}
//删除指定用户频道

export const deleteUserchannel = (target) => {
    return request({
        url: '/v1_0/user/channels/' + target,
        method: 'delete',
    })
}